import eventHub from '@/utils/event-hub';
export const setDeviceCode = (data) => {
	uni.setStorageSync('deviceCode', data);
	eventHub.emit('updateDeviceCode', data);
};
export const getDeviceCode = () => {
	return wx.getSystemInfoSync().deviceCode || '';
};
export default {
	getDeviceCode,
	setDeviceCode
};